package top.frsf.pattern.c_behavioral.c_observer.normal;

import top.frsf.pattern.c_behavioral.c_observer.normal.pub.UserRegisterService;
import top.frsf.pattern.c_behavioral.c_observer.normal.sub.ComputerSubscribe;
import top.frsf.pattern.c_behavioral.c_observer.normal.sub.GitlabAccountSubscribe;

/**
 * @author FRSF
 * @since 2024/9/4 22:49
 */
public class Main {
    public static void main(String[] args) {
        UserRegisterService pub = new UserRegisterService();
        pub.addSubscribe(new ComputerSubscribe());
        pub.addSubscribe(new GitlabAccountSubscribe());
        pub.register("frsf", "test==abc");
    }
}
